package com.yingside.exception;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Test3 {
    public static void main(String[] args) {
        String str = "2020111111";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

        try {
            Date d = sdf.parse(str);
        } catch (Exception e) {
            //打印异常栈
            //e.printStackTrace();
            //System.out.println(e.getMessage());
        }

        System.out.println("aaaa");
        System.out.println("aaaa");


    }
}
